<?php
$this->pageTitle = Yii::app()->name . ' - Login';
$this->breadcrumbs = array(
    'Login',
);
?>
<table>
    <tr>
        <th>
            id
        </th>
        <th>
            user id
        </th>
        <th>
            status
        </th>
        <th>
            change
        </th>
    </tr>
    <?php
    foreach ($orders as $order) {
        ?>
        <tr>
            <td>
                <?php echo $order->id ?>
            </td>
            <td>
                <?php echo $order->user_id ?>
            </td>
            <td>
                <?php echo $order->getStatusString() ?>
            </td>
            <td>
                <a href="/order/site/newOrder/id/<?php echo $order->id ?>">newOrder</a>
                <a href="/order/site/approve/id/<?php echo $order->id ?>">approve</a>
                <a href="/order/site/decline/id/<?php echo $order->id ?>">decline</a>
                <a href="/order/site/pay/id/<?php echo $order->id ?>">pay</a>
                <a href="/order/site/make/id/<?php echo $order->id ?>">make</a>
                <a href="/order/site/close/id/<?php echo $order->id ?>">close</a>
            </td>
        </tr>
        <?php
    }
    ?>
</table>